package cn.com.srit.repository;

import cn.com.srit.entity.MenuEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface MenuRepository extends JpaRepository<MenuEntity, String>, JpaSpecificationExecutor<MenuEntity> {
    Integer countByPid(String pid);

    Integer countByNameAndIdNot(String id, String name);
}
